{include file="merchant/common/search_owner.tpl"}

<div class="integral_owner" style="margin:5px 0 0 0;">
<img style="float:left;" src="/images/icon_man.gif" /><span class="color_green" style="float:left; margin:15px;">业主信息</span>
<table width="100%" align="center">
	<tr>
		<td><span>卡号：</span>{$ownerInfo.supplementary_card}</td>
		<td><span>当前促销类型</span>：{$discount}</td>
	</tr>
	<tr>
		<td><span>姓名：</span><span class="color_ry">{$ownerInfo.owner_name}</span></td>
		<td><span>扣减积分状态：</span>{if $ownerInfo.pay_status eq 2}交易关闭{else}{if $hasRef eq 0}未关联{else}{if $ownerShopRe.owner_card_status eq 1}正常{else}扣减积分已关闭{/if}{/if}{/if}
		</td>
	</tr>
	<tr>
		<td><span>手机：</span>{$ownerInfo.phone}</td>
		<td><span>增加积分总额：</span>{if $hasRef eq 0}未关联{else}<span class="color_green">{$ownerTj.cost_money_t}</span>{/if}</td>
	</tr>
	<tr>
		<td><span>社区：</span>{$ownerInfo.province}{$ownerInfo.city}{$ownerInfo.community_name}</td>
		<td><span>赠送积分总额：</span>{if $hasRef eq 0}未关联{else}<span class="color_green">{$ownerTj.discount_num}</span>{/if}</td>
	</tr>
</table>
</div>
<table class="tlist" style="width:100%; margin-top:20px;">
	<tr>
		<th>交易流水号</th>
		<th>交易时间</th>
		<th>卡号</th>
		<th>交易类型</th>
		<th>交易前剩余积分</th>
		<th>发生交易额</th>
		<th>交易后剩余积分</th>
	</tr>
	{foreach from=$integralDetail item=v}
	<tr>
		<td>{$v.pay_id}{if $v.cost_type eq 3}<p>原单流水号</p>{$v.cancel_pay_id}{/if}</td>
		<td>{$v.cost_time}</td>
		<td>{$v.owner_card}</td>
		<td>{if $v.cost_type eq 1}增加积分{elseif $v.cost_type eq 2}扣减积分{else}撤销交易{/if}</td>
		<td class="color_green font_w_b">{$v.cost_shop_before_money}</td>
		<td class="color_ry font_w_b">{$v.cost_money_t}</td>
		<td class="color_green font_w_b">{$v.cost_shop_after_money}</td>
	</tr>
	{/foreach}
	{if $pageStr neq ""}
	<tr><td colspan="7">{$pageStr}</td></tr>
	{/if}
</table>
